package www.sofn.com.member.domain.po;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import www.sofn.com.domain.pojo.BasePO;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
@Accessors(chain = true)
@TableName(value = "member" )
public class MemberPO  extends BasePO {
    private String openid;//openId;
    private String nickname; //昵称
    private Integer sex; //0:未知、1:男、2:女
    private String headImgUrl;//用户头像
    private BigDecimal integral;//积分
    private Integer isMember; //0:表示普通用户、1:表示会员
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime registerDate;//注册时间
}
